﻿<%@ Page Language="C#" Inherits="E.Web.Teacher.internals.publics.course.List" %>
<%@ Import Namespace="E.Model" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
  <title>课程管理</title>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />  
  <link rel="stylesheet" href="/css/main.css" type="text/css" media="all" />
  <link rel="stylesheet" href="/css/t_main.css" type="text/css" media="all" />
  <script type="text/javascript" src="/js/jquery-1.4.2.min.js"></script>
  <script type="text/javascript" src="/js/CheckBox.js"></script>
  <script type="text/javascript">
    SetCheckBoxProperty("SltAllbtn", "p_chkb");
  </script>
  <style type="text/css">
    .d_r_cb{ float:left; width:125px; }
    .d_r_et{ float:left; width:200px; }
    .d_r_ec{ float:left; width:200px; }
    .d_r_eo{ float:left; width:125px; }
  </style>
</head>
<body>
  <form id="form1" method="post" action="?act=s">
    <div class="m_top"></div>
    <div class="block" style="height:80px;">
      <div style="width:650px; height:22px;">
        <div class="title">&nbsp;课程管理</div>
      </div>
      <div class="spe_line_2"></div>
      <div style="width:650px; height:23px; margin-top:6px;">
        <div class="fl" style="line-height:23px;">课程名称：</div>
        <div class="fl"><input type="text" id="NameTxt" name="NameTxt" value="<%=name %>" /></div>
        <div class="fl" style="line-height:23px;">&nbsp;项目组：</div>
        <div class="fl">
          <% if (projectList != null && projectList.Count > 0) { %>
          <select id="ProjectSlt" name="ProjectSlt">
            <% if (authority == E.Enum.EnumTeacherAuthority.Admin) { %>
            <option value="-1">请选择</option>
            <% } %>
            <% foreach (System.Collections.Generic.KeyValuePair<int, string> kvp in projectList) { %>
            <option value="<%=kvp.Key %>"><%=kvp.Value%></option>
            <% } %>
          </select>
          <% } %>
        </div>
        <div class="fl">&nbsp;&nbsp;<input type="image" style="width:54px; height:23px;" src="/images/btn/search.gif" /></div>
        <div class="fl">&nbsp;&nbsp;<a href="/internals/publics/course/Edit.aspx?act=n"><img alt="" src="/images/btn/add_2.gif" /></a></div>
      </div>
    </div>
    <div class="block_2">
      <div style="width:650px; height:22px;">
        <div class="title">&nbsp;搜索结果</div>
      </div>
      <div class="spe_line_2"></div>
      
    <% if (courseList != null && courseList.Count > 0) { %>      
    
      <div id="datatable">
        <div class="data_rows" style="font-weight:bolder;">
          <%--<div class="d_r_cb"><input type="checkbox" id="SltAllbtn" onclick="SelectAllCheckBox();" class="chkb" /></div>--%>
          <div class="d_r_et">课程名称</div>
          <div class="d_r_ec">项目名称</div>
          <div class="d_r_eo">操作</div>
        </div>
        
        <% foreach (ShortCourseModel model in courseList) { %>
        <div class="data_rows">
          <%--<div class="d_r_cb"><input type="checkbox" id="chkb_<%=model.ID %>" name="p_chkb" value="<%=model.ID %>" class="chkb" onclick="SelectThis();" /></div>--%>
          <div class="d_r_et"><%=model.Name %></div>
          <div class="d_r_ec"><%=model.CnPName %></div>
          <div class="d_r_eo"><a href="/internals/publics/course/View.aspx?id=<%=model.ID %>">查看</a>&nbsp;<%=model.DelFlag ? "<a href=\"/internals/publics/course/H.aspx?h=a&id=" + model.ID + "\">激活</a>" : "<a href=\"/internals/publics/course/H.aspx?h=f&id=" + model.ID + "\">冻结</a>"%></div>
        </div>
        <% } %>
        
        
      </div>
      
      <div class="fr" style="margin:8px 0 0 0;"><%=mypager%></div>
      <div style="margin:8px 0 0 0;">
        <input type="hidden" id="arrv" name="arrv" />
        <%--<img alt="" src="/images/btn/del_s.gif" class="cursor" onclick="DeleteSelection_E();" />--%>
      </div>
      
    <% } else { %>
    <% } %>
      
    </div>
    
      <% if (act == "s") { %>
    <script type="text/javascript">
      $("#ProjectSlt").val('<%=pid %>');      
    </script>
      <% } %>
  </form>
</body>
</html>
